package com.citsin.atlas.viewmodel

import android.content.ContentResolver
import android.content.Context
import androidx.paging.DataSource
import com.citsin.atlas.bean.Album

/**
 * citsin
 * 2019-06-04
 */
class AlbumDataSourceFactory(private val context: Context) :
    DataSource.Factory<Int, Album>() {

    override fun create(): DataSource<Int, Album> {
        return AlbumDataSource(context.contentResolver)
    }
}